import request from '@/utils/request'

// 查询基础数据列表
export function listBasicData(query) {
  return request({
    url: '/archive/yqfields/list?pageNum='+query.pageNum+'&pageSize='+query.pageSize,
    method: 'post',
    data: query
  })
}

// 新增基础数据
export function addBasicData(data) {
  return request({
    url: '/archive/yqfields',
    method: 'post',
    data: data
  })
}

// 修改基础数据
export function updateBasicData(data) {
  return request({
    url: '/archive/yqfields',
    method: 'put',
    data: data
  })
}

// 查询基础数据
export function getBasicData(id) {
  return request({
    url: '/archive/yqfields/' + id,
    method: 'get'
  })
}

// 删除基础数据
export function delBasicData(id) {
  return request({
    url: '/archive/yqfields/' + id,
    method: 'delete'
  })
}

// 修改基础数据字典展示类型
export function updateShowType(data) {
  return request({
    url: '/archive/yqfields/editFieldTypeSelect',
    method: 'put',
    data: data
  })
}
